# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=colordiff
pkgver=1.0.19
pkgrel=0
pkgdesc="Color terminal highlighter for diff files"
url="https://www.colordiff.org"
arch="noarch"
license="GPL-2.0-or-later"
depends="diffutils less perl"
makedepends="lynx xmlto"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/daveewart/colordiff/archive/v$pkgver.tar.gz"

build() {
	make doc
}

check() {
	make -C verify
}

package() {
	make install \
		DESTDIR="$pkgdir" \
		INSTALL_DIR=/usr/bin \
		MAN_DIR=/usr/share/man/man1
}

sha512sums="f51836d7731887269ff5fe06bc5e6ce6ff2fd3c40463f812c07767ff17583b42e2b794b174854371369e108904c90dc8fd9c9032e02b9360db69a6ecd2d9fdc9  colordiff-1.0.19.tar.gz"
